﻿@namespace MXERP.Blazor.Components
@inherits MudComponentBase
<div @onpointerup="Open">
    <div @ref="Element">
        @ChildContent
    </div>
    
    <MudPopover @ref="Popover" OverflowBehavior="OverflowBehavior.FlipAlways" Open="_open" AnchorOrigin="@_anchorOrigin" TransformOrigin="@_transformOrigin" Class="@Classname" Elevation="10">
        <MudStack Spacing="2">
            <div class="d-flex align-center">
                <MudIcon Size="Size.Small" Icon="@Icons.Material.Filled.Report" Color="@Color.Warning" Class="mr-3" />
                <MudText Typo="Typo.body2">@Title</MudText>
            </div>
            <MudStack Spacing="2" Row="true" Justify="Justify.FlexEnd">
                <MudButton Size="Size.Small" OnClick="@Cancel" Variant="Variant.Filled">取消</MudButton>
                <MudButton Size="Size.Small" OnClick="@Confirm" Variant="Variant.Filled" Color="Color.Primary">确认</MudButton>
            </MudStack>
        </MudStack>
    </MudPopover>
    
</div>
